import React from 'react';
import {Input} from 'antd'

const TrimmedInput = ({value, onChange, ...restProps}) => {
    return (
        <Input
            value={value}
            onChange={(e) => onChange(e.target.value.trim())}
            {...restProps}
        />
    );
};
export default TrimmedInput